package com.sharecar.request;

import com.android.sharecar.model.FavoriteAddress;

/**
 * This class encapsulates the client's request to FavoriteAddressService.
 * @author xinyan
 *
 */
public class FavoriteAddressRequest extends Request {
	private static final long serialVersionUID = 5L;

	public static final int INSERT_AN_ADDRESS = 1;
	public static final int SELECT_ADDRESSES_OF_USER = 2;

	private FavoriteAddress address;
	private int userId;

	public FavoriteAddressRequest(int type) {
		this.requestType = type;
	}

	public FavoriteAddress getAddress() {
		return address;
	}

	public void setAddress(FavoriteAddress address) {
		this.address = address;
	}

	public int getUserId() {
		return userId;
	}

	public void setUserId(int userId) {
		this.userId = userId;
	}
}
